package com.donfu.system.service.house.impl;

import java.util.List;

import com.donfu.system.domain.house.HouseNoveltyType;
import com.donfu.system.mapper.house.HouseNoveltyTypeMapper;
import com.donfu.system.service.house.IHouseNoveltyTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 品牌类型Service业务层处理
 * 
 * @author donfu
 * @date 2021-12-07
 */
@Service
public class HouseNoveltyTypeServiceImpl implements IHouseNoveltyTypeService
{
    @Autowired
    private HouseNoveltyTypeMapper houseNoveltyTypeMapper;

    /**
     * 查询品牌类型
     * 
     * @param id 品牌类型主键
     * @return 品牌类型
     */
    @Override
    public HouseNoveltyType selectHouseNoveltyTypeById(Long id)
    {
        return houseNoveltyTypeMapper.selectHouseNoveltyTypeById(id);
    }

    /**
     * 查询品牌类型列表
     * 
     * @param houseNoveltyType 品牌类型
     * @return 品牌类型
     */
    @Override
    public List<HouseNoveltyType> selectHouseNoveltyTypeList(HouseNoveltyType houseNoveltyType)
    {
        return houseNoveltyTypeMapper.selectHouseNoveltyTypeList(houseNoveltyType);
    }

    /**
     * 新增品牌类型
     * 
     * @param houseNoveltyType 品牌类型
     * @return 结果
     */
    @Override
    public int insertHouseNoveltyType(HouseNoveltyType houseNoveltyType)
    {
        return houseNoveltyTypeMapper.insertHouseNoveltyType(houseNoveltyType);
    }

    /**
     * 修改品牌类型
     * 
     * @param houseNoveltyType 品牌类型
     * @return 结果
     */
    @Override
    public int updateHouseNoveltyType(HouseNoveltyType houseNoveltyType)
    {
        return houseNoveltyTypeMapper.updateHouseNoveltyType(houseNoveltyType);
    }

    /**
     * 批量删除品牌类型
     * 
     * @param ids 需要删除的品牌类型主键
     * @return 结果
     */
    @Override
    public int deleteHouseNoveltyTypeByIds(Long[] ids)
    {
        return houseNoveltyTypeMapper.deleteHouseNoveltyTypeByIds(ids);
    }

    /**
     * 删除品牌类型信息
     * 
     * @param id 品牌类型主键
     * @return 结果
     */
    @Override
    public int deleteHouseNoveltyTypeById(Long id)
    {
        return houseNoveltyTypeMapper.deleteHouseNoveltyTypeById(id);
    }
}
